ArcGIS API for WPF - Library Reference
DeleteAttachment(Graphic,String[],Action<AttachmentResult[]>,Action<Exception>) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > FeatureLayer Class > DeleteAttachment Method : DeleteAttachment(Graphic,String[],Action<AttachmentResult[]>,Action<Exception>) Method

g
The graphic to delete attachments from.
attachmentIds
The attachment ids.
callback
The method to call when completed.
errorCallback
The method to call if an error occurs.
Deletes one or more attachments.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub DeleteAttachment( _
   ByVal g As Graphic, _
   ByVal attachmentIds() As String, _
   ByVal callback As Action(Of AttachmentResult()), _
   ByVal errorCallback As Action(Of Exception) _
) 
C# 
public void DeleteAttachment( 
   Graphic g,
   string[] attachmentIds,
   Action<AttachmentResult[]> callback,
   Action<Exception> errorCallback
)

Parameters

g
The graphic to delete attachments from.
attachmentIds
The attachment ids.
callback
The method to call when completed.
errorCallback
The method to call if an error occurs.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.